package com.liang.servicegateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 网关应用程序
 *
 * @author liangyehao
 * @date 2021/03/20
 */
@RestController
@SpringBootApplication
public class GatewayApp {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApp.class,args);
    }

    @RequestMapping("/fallback")
    public String fallback(){
        return "gateway fallback...";
    }
}
